package com.qianfeng.tiantian_banjia.fragment;
import com.qianfeng.tiantian_banjia.R;
import com.qianfeng.tiantian_banjia.update.UpdateManager;

import android.R.layout;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;

public class MoreFragment extends Fragment {
	ImageView imgUpdate;
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view=inflater.from(getActivity()).inflate(R.layout.more_fragment,container, false);
		// TODO Auto-generated method stub
		imgUpdate=(ImageView) view.findViewById(R.id.btn_update_more);
		imgUpdate.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				UpdateManager manager=new UpdateManager(getActivity());
				manager.checkUpdate();
			}
		});
		return view;
	}
	
	/*public void btnClick(View view){
		switch (view.getId()) {
		case R.id.btn_update_more:
		UpdateManager manager=new UpdateManager(getActivity());
		manager.checkUpdate();
			break;

		default:
			break;
		}
	}*/

}
